Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finished assignment #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Finished assignment #17

wants to merge 1 commit into from

Conversation

Core966
Copy link

@Core966 Core966 commented Feb 16, 2014

All done. Thanks!


Passenger = Struct.new(:name, :train)

passenger = Passenger.new( "Tibor", {city: "Budapest", numberOfEngines: 2, numberOfCars: 6, caboose: "medium-sized"} )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use snake-style with method names and variable names.

So, in JavaScript and many other languages, you might say "numberOfEngines", but in ruby, it should be number_of_engines

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I will keep that in mind. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants